<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="__UU__/lib/html5.js"></script>
<script type="text/javascript" src="__UU__/lib/respond.min.js"></script>
<script type="text/javascript" src="__UU__/lib/PIE_IE678.js"></script>
<![endif]-->
<link href="__UU__/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="__UU__/css/H-ui.admin.css" rel="stylesheet" type="text/css" />

<link href="__UU__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="__UU__/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>我的桌面</title>
<style>
  .hint-msg .act{
    color: #3c763d;
  }
  .hint-msg .order{
    color: #337ab7
  }
  .bg-danger{
      background-color: #f2dede;
      padding: 15px;
      margin-bottom: 20px
  }
  .fu-page{
    text-align: center;
    padding:10px 0;
  }
  .fu-page a{
    display: inline-block;
    padding: 3px 9px;
    border:1px solid #ddd;
  }
  .fu-page a.active{
    background: #337ab7;
    color: #FFF;
    border-color: #337ab7;
  }
  .fu-page a:hover{
    text-decoration: none;
  }

</style>
</head>
<body>
<div class="pd-20" style="padding-top:20px;">
  <p class="f-20 text-success">欢迎您 {$va.shop_name}</p>
  <!-- <p>上次登录IP：222.35.131.79.1  上次登录时间：2014-6-14 11:19:55</p> -->
  <if condition="$clear neq null">
  <div class="bg-danger">
      注意：{$clear['clearing_start_date']} 至 {$clear.clearing_end_date} 的订单已经结算
  
  </div>
  </if>
  <table class="table table-border table-bordered table-bg">
    <thead>
      <tr>
        <th colspan="7" scope="col">统计</th>
      </tr>
      <tr class="text-c">
        <th>统计</th>
        <th>新活动</th>
        <th>新增订单</th>
        <th>参与用户</th>
        <th>交易金额</th>
      </tr>
    </thead>
    <tbody>
      <tr class="text-c">
        <td>总数</td>
        <td><php>echo (R('Index/count',array(5,1)));</php></td>
        <td><php>echo (R('Index/count',array(5,2)));</php></td>
        <td><php>echo (R('Index/count',array(5,2)));</php></td>
        <td><php>echo (R('Index/count',array(5,3)));</php></td>
      </tr>
      <tr class="text-c">
        <td>今日</td>
        <td>{:R('Index/count',array(1,1))}</td>
        <td>{:R('Index/count',array(1,2))}</td>
        <td>{:R('Index/count',array(1,2))}</td>
        <td>{:R('Index/count',array(1,3))}</td>
      </tr>
      <tr class="text-c">
        <td>昨日</td>
        <td>{:R('Index/count',array(2,1))}</td>
        <td>{:R('Index/count',array(2,2))}</td>
        <td>{:R('Index/count',array(2,2))}</td>
        <td>{:R('Index/count',array(2,3))}</td>
      </tr>
      <tr class="text-c">
        <td>本周</td>
        <td>{:R('Index/count',array(3,1))}</td>
        <td>{:R('Index/count',array(3,2))}</td>
        <td>{:R('Index/count',array(3,2))}</td>
        <td>{:R('Index/count',array(3,3))}</td>
      </tr>
      <tr class="text-c">
        <td>本月</td>
        <td>{:R('Index/count',array(4,1))}</td>
        <td>{:R('Index/count',array(4,2))}</td>
        <td>{:R('Index/count',array(4,2))}</td>
        <td>{:R('Index/count',array(4,3))}</td>
      </tr>
    </tbody>
  </table>

  <div class="hint-msg" style="margin-top: 20px">
    <table class="table table-border table-bordered table-bg table-hover">
        <thead>
            <tr>
              <th colspan="2" scope="col">信息提醒</th>
            </tr>
        </thead>
        <tbody>
        <volist name="log" id="lo">
          <tr>
            <td><if condition="$lo.type eq '1'"><strong class="act">[活动]</strong><elseif condition="$lo.type eq '2'"/> <strong class="order">[订单]</strong></if>{$lo.log}</td>
            <td width="200px">{$lo.add_time}</td>
          </tr>
        </volist>
        </tbody>
    </table>
    <div class="fu-page">
      {$show}
    </div>
  </div>


</div>
<footer class="footer">
  <p>Copyright 影伴 版权所有 </p>
</footer>
<script type="text/javascript" src="__UU__/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__UU__/js/H-ui.js"></script>
</body>
</html>